package com.zym.utils;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;

/**
 * @author ZouYangMing
 */
public class ZymFileUtils {

    /**
     * 读取本地JSON文件数据
     * @param file
     * @return
     */
    public static String getJsonInfo(File file){
        String jsonFile_str = "";
        try {
            jsonFile_str = FileUtils.readFileToString(file);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
        return jsonFile_str;
    }

}
